package cj.web.marry.constants;

/**
 * 婚典Type
 * @author Administrator
 *
 */
public enum GameTypeEnum {
	//1家风,2情感,3集体婚礼,4服务
	NUM_1("家风",1),
	NUM_2("情感", 2),
	NUM_3("集体婚礼", 3),
	NUM_4("服务", 4),
	;
    // 成员变量
    private String name;
    private int value;

    // 构造方法
    private GameTypeEnum(String name, int value) {
        this.name = name;
        this.value = value;
    }

    // 普通方法
    public static String getName(int value) {
        for (GameTypeEnum c : GameTypeEnum.values()) {
            if (c.getValue() == value) {
                return c.name;
            }
        }
        return null;
    }

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getValue() {
		return value;
	}

	public void setValue(int value) {
		this.value = value;
	}
}
